import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import './style/reset.scss'
import './style/element-reset.scss'
import axios from './config/axios.js'
import Toast from './components/toast/index.ts'
import Nav from './components/NavMenu/index.ts'

Vue.prototype.$axios = axios

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(Toast)
Vue.use(Nav)

router.beforeEach((to, from, next) => {
  console.log(to)
  next()
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
